<html>
<head><meta charset="utf-8"><title>make tidy enforce &quot;SAFETY&quot; comments? · wg-secure-code · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/index.html">wg-secure-code</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/make.20tidy.20enforce.20.22SAFETY.22.20comments.3F.html">make tidy enforce &quot;SAFETY&quot; comments?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="175985263"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/make%20tidy%20enforce%20%22SAFETY%22%20comments%3F/near/175985263" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/make.20tidy.20enforce.20.22SAFETY.22.20comments.3F.html#175985263">(Sep 18 2019 at 09:09)</a>:</h4>
<p><span class="user-mention" data-user-id="127617">@Shnatsel</span> and anyone else from safety-dance: your input would be appreciated in <a href="https://github.com/rust-lang/rust/pull/63793" target="_blank" title="https://github.com/rust-lang/rust/pull/63793">https://github.com/rust-lang/rust/pull/63793</a>. In particular, it would be interesting how useful you think it would be to mandate a comment on every unsafe block explaining its safety, even if &gt;90% of those comments turn out to be "we just checked the thing this operation requires".</p>



<a name="176021090"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/make%20tidy%20enforce%20%22SAFETY%22%20comments%3F/near/176021090" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/make.20tidy.20enforce.20.22SAFETY.22.20comments.3F.html#176021090">(Sep 18 2019 at 16:27)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> nice! Kind of reminds me of my proposal to tie each unsafe block to a cargo feature: <a href="https://internals.rust-lang.org/t/crate-capability-lists/8933/2" target="_blank" title="https://internals.rust-lang.org/t/crate-capability-lists/8933/2">https://internals.rust-lang.org/t/crate-capability-lists/8933/2</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>